import { get } from '../../utils/axios'
export default {
  namespaced: true,
  state: {
    title: '用户管理',
    list: null
  },
  actions: {
    // 异步方法
    fetchData() {
      get('/user/findAll').then((msg) => {
        context.state.list = msg.data
      })
    }
  }
}
